export default {
  getUrlKey: function (name) {
    return decodeURIComponent(
      // eslint-disable-next-line no-sparse-arrays,standard/array-bracket-even-spacing
      (new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [ , ''])[1].replace(/\+/g, '%20')) || null
  }
}
